#!/usr/bin/env bash
set -euo pipefail
IFS=$'\n\t'

#--no-process-group 

(trap 'kill 0' SIGINT; \
 bash -c 'cd frontend; CARGO_TARGET_DIR=../target-trunk trunk serve --address 0.0.0.0' & \
 bash -c 'cd server; cargo watch -- cargo run -- --web-port 8081 --server-name cx-voip --server-tcp-port 5080 --server-udp-port 9360 -- ../signald')
